package com.bdqn.ch01.controller;


import com.bdqn.ch01.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping(value = "/getuser")
    public Object getUser() {
        User user = new User();
        user.setName("张三");
        user.setEmail("1111@qq.com");
        return user;
    }
}
